//---------------------------------------------------------------------
// Author: jachymko
//
// Description: type name tab expansion handler tests
//
// Creation Date: Jan 8, 2007
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;

using NUnit.Framework;

namespace PscxUnitTests.TabExpansion
{
    [TestFixture]
    public class TypeNameTest : TabExpansionTestBase
    {
        [Test]
        public void RemoveBraces()
        {
            AssertExpansions("[System.String]=", new string[]
            {
                "System.String"
            });
        }

        [Test]
        public void TypeNames()
        {
            AssertExpansions("[System.Strin", new string[]
            {
                "[System.String]",
                "[System.StringComparer]",
                "[System.StringComparison]",
                "[System.StringSplitOptions]"
            });

        }

        [Test]
        public void SystemTypeNames()
        {
            AssertExpansions("[StringComp", new string[]
            {
                "[StringComparer]",
                "[StringComparison]"
            });
        }

        [Test]
        public void Namespace()
        {
            AssertExpansions("[System.Windows.For", new string[]
            {
                "[System.Windows.Forms."
            });
        }
    }
}
